package com.bluegalaxy.sitescore.mapper;

import com.bluegalaxy.sitescore.entity.SurfaceWaterOL;
import com.bluegalaxy.sitescore.entity.TbScore;
import com.bluegalaxy.sitescore.entity.TbSurfaceWaterOverLand;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * TbSurfaceWaterOverLand 表数据库控制层接口
 *
 */
public interface TbSurfaceWaterOverLandMapper extends AutoMapper<TbSurfaceWaterOverLand> {

    int insertGetId(TbSurfaceWaterOverLand tbSurfaceWaterOverLand);

    boolean updateSurfaceWaterOL(TbSurfaceWaterOverLand tbSurfaceWaterOverLand);

    boolean delSurfaceWaterOL(@Param("id") int id,@Param("source_id") int source_id);

    List<TbScore> tbSurfaceWaterOverLandListBySourceId(@Param("sourceId") int sourceId);

    SurfaceWaterOL getTbSurfaceWaterOverLandById(@Param("id")int id);
}